QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Surface UV

Labels

ASCII
SurfaceUV
Binary
sruv ( = 0x73727576 )

Data Format

Param2D             surfaceUV
surfaceUV
The values in the two fields of this structure specify a surface uv parameterization for one or more objects. Both of these values must be floating-point numbers greater than or equal to 0 and less than or equal to 1.

Data Size

8

Description

A surface UV object is used to specify a surface uv parameterization for one or more objects. A surface UV object is normally used in conjunction with a trim shader.

Parent Hierarchy

Element, attribute.

Parent Objects

Attribute set. A surface UV object always has a parent object.

Child Objects

None.

Example

Container (
    Mesh ( ... )
    Container (
        VertexAttributeSetList (
            200 Include 4 10 21 22 11
        )


        Container (
            AttributeSet ( )
            SurfaceUV ( 0 0 )
        )
        Container (
            AttributeSet ( )
            SurfaceUV ( 0 1 )
        )
        Container (
            AttributeSet ( )
            SurfaceUV ( 1 1 )
        )
        Container (
            AttributeSet ( )
            SurfaceUV ( 1 0 )
        )
    )
)

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |